
<ol>
	<li>To set up sub site like http://localhost/mySite/admin you need to make folder called admin into your site folder. (<strong>C:/SERVER/mySite/admin/</strong>)<br>
	  <br>
	</li>
    <li>Now copy <strong>index.php</strong> and<strong>  .htaccess</strong> file from <strong>C:/SERVER/mySite/</strong> to <strong>C:/SERVER/mySite/admin/ </strong><br>
      <br>
    </li>
    <li>See http://localhost/mySite/admin. You should get error something like this:<br>
      <br>
      <strong>Warning</strong>:  require(conf/runtime.conf.php) [<a href="http://localhost/mySite/admin/function.require">function.require</a>]: failed to open stream: No such file or directory in <strong>C:\SERVER\mySite\admin\index.php</strong> on line <strong>3</strong><br>
      <br>
      <strong>Fatal error</strong>:  require() [<a href="http://localhost/mySite/admin/function.require">function.require</a>]: Failed opening required 'conf/runtime.conf.php' (include_path='.;C:\php5\pear') in <strong>C:\SERVER\mySite\admin\index.php</strong> on line <strong>3</strong><br>
      <br>
  </li>
    <li>Open admin/index.php and change <strong>require('conf/runtime.conf.php');</strong> to <strong>require('../conf/runtime.conf.php');</strong><br>
      Now it will take configuration file from correct location.<br>
      <br>
    </li>
    <li>See what happened. You should see working example of your site but in admin folder.<br> 
      <br>
  </li>
    <li>Now modify this line: <strong>$site = new DomSite( SITE_URL, 'Site');</strong><br>
    to this: <strong>$site = new DomSite( SITE_URL.'admin/', 'Admin');<br>
      <br>
    </strong>It will use now controllers from Admin folder not Site and site url will be http://localhost/mySite/admin<br>
      <br>
  </li>
    <li>You should get now error something like: Can't load any controller. Needed controller <strong>Index</strong> was not found and index controller <strong>Index</strong> was also not found<br>
      <br>
    </li>
    <li>So lets make Admin controller. <br>
		<ol>
     	<li>Make folder <strong>C:/SERVER/mySite/application/controllers/Admin/</strong></li>
		<li>Make there PHP file indexController.php and into it write code:<br>
		  {literal}<code>
		  class <strong>IndexController</strong> extends <strong>DomController</strong> {<br>
		   public function index() {<br><br>} <br>
		  }
		  {/literal}</code>		</li>
		<li>Make folder C:/SERVER/mySite/application/views/Admin/</li>
		<li>Make therer HTML file index.html  and into it write something like &quot;this is my admin site&quot;<br>
		    <br>
	      <br>
		  </li>
		</ol>
    </li>
    <li>Now you are done! You should have nice working sub site! <br>
    </li>
</ol>
